package cn.jbit.pojo;

import java.io.Serializable;

/**
 * 订单实体类
 * @author _Cpxy
 *
 */
public class Order implements Serializable{
	
	private static final long serialVersionUID = 1L;
	/* 订单ID */
	private Integer order_id;
	/* 用户ID */
	private Integer order_user_id;
	/* 商品ID */
	private Integer order_commodity_id;
	/* 订单生成时间 */
	private String  order_generation_time;
	/* 订单交易时间 */
	private String  order_transaction_time;
	/* 订单状态 1、可用，0、不可用 */
	private Integer order_state;
	/* 用户对象 */
	private User  user;
	/* 商品对象 */
	private commodity comm;
	
	
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public commodity getComm() {
		return comm;
	}
	public void setComm(commodity comm) {
		this.comm = comm;
	}
	public Integer getOrder_id() {
		return order_id;
	}
	public void setOrder_id(Integer order_id) {
		this.order_id = order_id;
	}
	public Integer getOrder_user_id() {
		return order_user_id;
	}
	public void setOrder_user_id(Integer order_user_id) {
		this.order_user_id = order_user_id;
	}
	public Integer getOrder_commodity_id() {
		return order_commodity_id;
	}
	public void setOrder_commodity_id(Integer order_commodity_id) {
		this.order_commodity_id = order_commodity_id;
	}
	public String getOrder_generation_time() {
		return order_generation_time;
	}
	public void setOrder_generation_time(String order_generation_time) {
		this.order_generation_time = order_generation_time;
	}
	public String getOrder_transaction_time() {
		return order_transaction_time;
	}
	public void setOrder_transaction_time(String order_transaction_time) {
		this.order_transaction_time = order_transaction_time;
	}
	public Integer getOrder_state() {
		return order_state;
	}
	public void setOrder_state(Integer order_state) {
		this.order_state = order_state;
	}
	@Override
	public String toString() {
		return "Order [order_id=" + order_id + ", order_user_id=" + order_user_id + ", order_commodity_id="
				+ order_commodity_id + ", order_generation_time=" + order_generation_time + ", order_transaction_time="
				+ order_transaction_time + ", order_state=" + order_state + ", user=" + user + ", comm=" + comm + "]";
	}
	
	
	
	
}
